package com.hd.pzhwlxt.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hd.pzhwlxt.mapper.AdvertisementMapper;
import com.hd.pzhwlxt.mapper.BuildInfoMapper;
import com.hd.pzhwlxt.pojo.Advertisement;
import com.hd.pzhwlxt.pojo.BuildInfo;
import com.hd.pzhwlxt.service.AdvertisementService;
import com.hd.pzhwlxt.service.BuildInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdvertisementServiceImpl extends ServiceImpl<AdvertisementMapper, Advertisement> implements AdvertisementService {
    @Autowired
    AdvertisementMapper advertisementMapper;

    @Override
    public Page<Advertisement> getAllAdvertisement(Integer pageNum, Integer pageSize) {
        return advertisementMapper.selectPage(new Page<Advertisement>(pageNum, pageSize), null);
    }
}
